package com.yc.cloud.portal.request;

import com.yc.cloud.common.basic.enums.EnumValue;
import com.yc.cloud.common.pay.enums.PayTypeEnums;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * 订单
 *
 * @author Yancy
 * @since 2024-01-03
 */
@Data
@ApiModel(value = "Order对象", description = "订单")
public class OrderCreateParam {


    @ApiModelProperty(value = "产品ID", required = true)
    @NotNull
    @Min(1)
    private Long productId;

    @ApiModelProperty("支付类型 1:微信")
    @EnumValue(enumClass = PayTypeEnums.class, message = "支付类型不合法")
    private String payType;

//    @ApiModelProperty("订单描述")
//    private String description;

//    @ApiModelProperty("用户开放平台ID")
//    private String openid;


}
